                                <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //函数的两种声明方式
        // 1. 通过 function 关键字声明
        function play(){
            console.log('今晚吃鸡');
        }
        play();
        // 2. 匿名函数（把函数赋值给了变量）
        let eat = function (menu){
            console.log('今晚吃' + menu);
        };
        eat('红烧鱼');
        // 3. 箭头函数
        let run = () => {
            console.log('就这么跑来跑去');
        }
        run();
    </script>
</body>
</html>